﻿using Furion.DatabaseAccessor;
using JsonDemo.Core.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JsonDemo.Core;
public class DemoSeedData :IEntitySeedData<Demo>
{
    public IEnumerable<Demo> HasData(DbContext dbContext, Type dbContextLocator)
    {
        return new List<Demo>()
        {
            new Demo
            {
                Id="a284fcb7-38ca-4d5e-bf4b-8f051968c8da",
                Name = "AbsMF",
                Tags={"dotnet", "drop", "dot"},
                CreatedTime= DateTime.Parse("2023/2/11"),

            },
            new Demo
            {
                Id="a284fcb7-38ca-4d5e-bf4b-8efd1968c8cd",
                Name = "AbsEF",
                Tags={"C++", "python", "C#"},

                CreatedTime= DateTime.Parse("2023/2/11"),


            }
        };
    }
}
